<?php

!defined('PWD') && define('PWD', dirname(__FILE__) . '/');

define('ROOT',			PWD);
define('CUSTOM_CFG_PATH',	ROOT . '/_tmp/');
define('IS_LOCAL',		$_SERVER['SERVER_ADDR'] == '127.0.0.1');
define('IS_DEBUG',		true);

include_once ROOT . '/../ujn2/ujn.php';

ujn_runtime::setSplitAlias('adam');

function page_404() { echo '404'; }

ujn::runApplication(array(
	'controllers_path'	=> ROOT . '/controller/',
	'models_path'			=> ROOT . '/model/',
	'tmp_path'				=> ROOT . '/_tmp/',

	'database_name'		=> 'g_bottle',

	'dhs' => array(
		'adam' => array(
			'mysql' => IS_LOCAL ? 'root:@localhost:3306' : 'kevin:64563167@127.0.0.1',
		)
	),

	'max' => array(
		'wine' => 8,
		'pick' => 6
	),
), ( defined('RUN_FUNC') && function_exists(RUN_FUNC) ) ? RUN_FUNC : '');